@model IViewModel

<h2>We are sorry, but you do not have access rights to this content</h2>
@if (!ViewContext.HttpContext.IsCustomErrorEnabled)
{
    <div >
    @foreach (var message in Model.Messages)
    {
        <div><b>@message.Reporter</b>:@message.Text</div>
        <pre>@(message.DebugDetails ?? string.Empty)</pre>
    }
    </div>
}